﻿namespace PrearrangedChaos.AgileZen.Service
{
    internal class BooleanFilter : IBooleanFilter
    {
        private readonly string _filterName;

        internal BooleanFilter(string filterName)
        {
            this._filterName = filterName;
        }

        public ZenFilter IsTrue()
        {
            return new ZenFilter(string.Format("{0}:\"true\"", this._filterName));
        }

        public ZenFilter IsFalse()
        {
            return new ZenFilter(string.Format("not({0}:\"false\")", this._filterName));
        }
    }
}